package org.komarichin.filters.trim;

import javax.servlet.ServletOutputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;

/**
 * User: Mykhaylo Komarichyn
 * Date: 18.02.2010
 * Time: 18:14:56
 */
public class FilterServletOutputStream extends ServletOutputStream {
    private final DataOutputStream stream;

    public FilterServletOutputStream(OutputStream outputstream) {
        stream = new DataOutputStream(outputstream);
    }

    public void write(int i)
            throws IOException {
        stream.write(i);
    }

    public void write(byte abyte0[])
            throws IOException {
        stream.write(abyte0);
    }

    public void write(byte abyte0[], int i, int j)
            throws IOException {
        stream.write(abyte0, i, j);
    }
}
